package yang.yu.sunny.infra.persistence.product;

import yang.yu.sunny.domain.product.Product;

import java.util.Collection;
import java.util.List;

/**
 * Created by yyang on 16/3/29.
 */

public interface ProductMapper extends AbstractProductMapper {

    Product get(Long id);

    String getName(Long id);

    List<Product> list(Collection<Long> ids);

    List<Product> findByName(String nameFragment);

    List<Product> listAll();
}
